﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.Shell;

namespace dasFX.VSTime.API
{
    public class VSTimeExceptionHandler
    {
        public static void ReportException(Exception ex)
        {
            IVsActivityLog _log = Package.GetGlobalService(typeof(SVsActivityLog)) as IVsActivityLog;
            _log.LogEntry((UInt32)__ACTIVITYLOG_ENTRYTYPE.ALE_ERROR, "VSTime", ex.Message);
        }
    }
}
